package com.ethan.model.order;

import lombok.Getter;
import lombok.Setter;

/**
 * @author ethan
 * create 2018-04-11 下午3:15
 * desc
 **/
@Setter
@Getter
public class Result<T> {
    /**
     * 返回状态(200:成功 500:服务器错误)
     */
    public int code;

    /**
     * 返回的消息
     */
    public String message;

    public T dataBody;

    public Result() {
    }

    public Result(int code, T dataBody, String message) {
        this.code = code;
        this.dataBody = dataBody;
        this.message = message;
    }
}
